import request from '@/utils/request'

// 查询产品订单列表
export function listProductOrder(query) {
  return request({
    url: '/orders/productOrder/list',
    method: 'get',
    params: query
  })
}

// 查询产品订单详细
export function getProductOrder(scRecordId) {
  return request({
    url: '/orders/productOrder/' + scRecordId,
    method: 'get'
  })
}

// 新增产品订单
export function addProductOrder(data) {
  return request({
    url: '/orders/productOrder',
    method: 'post',
    data: data
  })
}

// 修改产品订单
export function updateProductOrder(data) {
  return request({
    url: '/orders/productOrder',
    method: 'put',
    data: data
  })
}

// 删除产品订单
export function delProductOrder(scRecordId) {
  return request({
    url: '/orders/productOrder/' + scRecordId,
    method: 'delete'
  })
}
